<!-- src/pages/CoverPage.vue -->
<template>
  <div class="cover-container">
    <div class="title-box" v-motion-slide-bottom>
      <h1 class="title">死线 <span class="eng">DeaDLine</span></h1>
      <p class="desc">你的智能日程安排助手</p>
      <el-button type="primary" class="enter-btn" @click="goToLogin">开始使用</el-button>
    </div>
  </div>
</template>

<script lang="ts" setup>
import { useRouter } from 'vue-router'

const router = useRouter()

const goToLogin = () => {
  // 页面切换带过渡效果
  router.push('/login')
}
</script>

<style scoped>
.cover-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: white;
  background: linear-gradient(180deg, #ffffff 0%, #e8edff 100%);
  text-align: center;
}

.title-box {
  animation: fadeIn 1.2s ease;
}

.title {
  font-size: 64px;
  font-weight: 800;
  color: #1a237e; /* 靛蓝色 */
  letter-spacing: 4px;
}

.title .eng {
  font-size: 36px;
  font-weight: 500;
  color: #3f51b5;
  margin-left: 10px;
}

.desc {
  font-size: 20px;
  color: #5c6bc0;
  margin-top: 16px;
}

.enter-btn {
  margin-top: 32px;
  padding: 14px 40px;
  font-size: 18px;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.enter-btn:hover {
  transform: scale(1.05);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
</style>
